|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Filled
public class Filled
The Filled class represents the <filled> VXML element.
It defines a list of actions to be performed by the VXML interpreter when
data has been collected from the caller. Both Field and
Form instances can contain Filled elements.
An optional list of names can be defined to specify which elements this
filled element is interested in. The mode determines which elements of the
name list must be filled before the actions are performed. Setting the mode
to Filled.MODE_ANY allows the execution of the filled element when data is
collected for any of the named elements, where as, Filled.MODE_ALL only
allows execution of the filled element when data has been collected for all
of the named elements. The default mode is Filled.MODE_ANY. If no list of
named elements is provided, the list defaults to all elements within the
current scope.
NOTE: If a filled element is added to a field whose name is not contained
within the name list (only if a name list is explicitly defined), the filled
element will never execute.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Filled()
Creates a new instance of Filled that will execute if any of
the elements in the current scope are filled. |
|
Filled(java.lang.String mode)
Creates a new instance of Filled that will execute based on
the specified mode when the elements in the current scope
are filled.Filled.FILLED_MODE_ANY - When any elements are filled Filled.FILLED_MODE_ALL - When all elements are filled |
|
Filled(java.lang.String[] names)
Creates a new instance of Filled that will execute if any of
the elements named in the array are filled. |
|
Filled(java.lang.String mode,
java.lang.String[] names)
Creates a new instance of Filled that will execute based on
the specified mode when the elements named in the array are
filled.Filled.FILLED_MODE_ANY - When any elements are filled Filled.FILLED_MODE_ALL - When all elements are filled |
|
| Method Summary | |
|---|---|
void |
addAction(Action action)
Adds the action to the list of actions to perform if this filled element is executed. |
void |
addIfClause(If ifClause)
Adds a set of conditional actions into the list of actions to perform if this filled element is executed. |
void |
addName(java.lang.String name)
Adds the name to the list of element names. |
void |
addVariable(Variable variable)
Adds the specified variable element to this filled handler. |
Widget[] |
getActionsAndIfClauses()
Returns the actions and conditionals that this filled executes. |
java.lang.String |
getMode()
Returns the setting that determines which elements need to be filled. |
java.lang.String[] |
getNames()
Returns the element names this filled instance requires. |
Variable[] |
getVariables()
Returns the variables set when this filled executes. |
void |
removeAction(Action action)
Removes the action from the list of actions to perform if this filled element is executed. |
void |
removeIfClause(If ifClause)
Removes a set of conditional actions from the list of actions to perform if this filled element is executed. |
void |
removeName(java.lang.String name)
Removes the name from the list of element names. |
void |
removeVariable(Variable variable)
Removes the specified variable element from this filled handler. |
void |
setMode(java.lang.String mode)
Sets the setting that determines which elements need to be filled. Filled.FILLED_MODE_ANY - When any elements are filled Filled.FILLED_MODE_ALL - When all elements are filled |
protected void |
writeActionsAndIfClauses(org.xml.sax.ContentHandler outputHandler)
Write the actions and if clauses of this filled to the specified content handler. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this filled to the supplied set. |
protected void |
writeVariables(org.xml.sax.ContentHandler outputHandler)
Write the variables in this filled to the specified content handler. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Filled()
Filled that will execute if any of
the elements in the current scope are filled.
public Filled(java.lang.String mode)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Filled that will execute based on
the specified mode when the elements in the current scope
are filled.
mode - The setting that determines which elements need to be filled.
java.lang.IllegalArgumentException - If the specified mode is not one of "any"
or "all".
java.lang.NullPointerException
public Filled(java.lang.String[] names)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Filled that will execute if any of
the elements named in the array are filled.
names - An array of element names.
java.lang.IllegalArgumentException
java.lang.NullPointerException
public Filled(java.lang.String mode,
java.lang.String[] names)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Filled that will execute based on
the specified mode when the elements named in the array are
filled.
mode - The setting that determines which elements need to be filled.names - An array of element names.
java.lang.IllegalArgumentException - If the specified mode is not one of "any"
or "all".
java.lang.NullPointerException| Method Detail |
|---|
public java.lang.String getMode()
public java.lang.String[] getNames()
public Variable[] getVariables()
public Widget[] getActionsAndIfClauses()
public void setMode(java.lang.String mode)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
mode - The setting that determines which elements need to be filled.
java.lang.IllegalArgumentException - If the specified mode is not one of "any"
or "all".
java.lang.NullPointerException
public void addName(java.lang.String name)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
name - The element name to add.
java.lang.IllegalArgumentException - If the specified name is empty.
java.lang.NullPointerException - If the specified name is null.
public void removeName(java.lang.String name)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
name - The element name to remove.
java.lang.IllegalArgumentException - If the specified name is empty.
java.lang.NullPointerException - If the specified name is null.
public void addVariable(Variable variable)
throws java.lang.NullPointerException
variable - The variable to add.
java.lang.NullPointerException - If the specified variable is null.
public void removeVariable(Variable variable)
throws java.lang.NullPointerException
variable - The variable to remove.
java.lang.NullPointerException - If the specified variable is null.
public void addAction(Action action)
throws java.lang.NullPointerException
action - The action to add.
java.lang.NullPointerException - If the specified action is null.
public void removeAction(Action action)
throws java.lang.NullPointerException
action - The action to remove.
java.lang.NullPointerException - If the specified action is null.
public void addIfClause(If ifClause)
throws java.lang.NullPointerException
ifClause - The If clause to add.
java.lang.NullPointerException - If the specified if clause is
null.
public void removeIfClause(If ifClause)
throws java.lang.NullPointerException
ifClause - The If clause to remove.
java.lang.NullPointerException - If the specified if clause is
null.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
protected void writeVariables(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the variables fails.
protected void writeActionsAndIfClauses(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the actions or if clauses
fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||